<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">  
<title>专利协同服务平台</title>
<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/select.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/H-ui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/select-ui.min.js"></script>
  
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select").uedSelect({
		width : 345		
	});
});
</script>
<style type="text/css">
select{width:100px;font-size:13px;}
.formControls{margin-top:4px;font-size: 15px;}
.formspan{font-size: 15px;}
</style>
</head>
<body>
	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">首页</a></li>
			<li><a href="#">${location}</a></li>
			<li><a href="#">查看专利协同申请书</a></li>
		</ul>
    </div>  
    <div class="formbody">    
		<div id="usual1" class="usual"> 
			<div class="formtitle">
	    		<span>专利协同申请书</span>
	    	</div>
			<div id="tab1" class="tabson">
				<ul class="seachform">
					<li>
						<label>&nbsp;&nbsp;修改记录&nbsp;:&nbsp;</label>  
						<div class="vocation" >
							<select class="select" id="time" onchange="changeSynergy(this.value)">
								<c:forEach items="${patentSynergies}" var="synergy">
									<option value="${synergy.id}">&nbsp;&nbsp;${fn:substring(synergy.createTime,0,19)}&nbsp;修改版本</option>
								</c:forEach>
							</select>
						</div>
					</li>
				</ul>
				<div class="panel-body"  style="margin-left:-150px;width:90%;">
					<form action="" method="post" class="form form-horizontal responsive" id="form">
					<div class="row cl">
							<label class="form-label col-xs-3">提交时间：</label>
							<div class="formControls col-xs-8"  >
								 ${fn:substring(patentSynergies[0].createTime, 0, 19)}
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-3">专利名称：</label>
							<div class="formControls col-xs-8" >
								<span title="name" class="formspan">${patent.name}</span>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-3">所属学科：</label>
							<div class="formControls col-xs-8" >
								<c:forEach items="${patentSubjectsChars}" var="subjects">
									<span title="subject" class="formspan">${subjects.value}</span>
								</c:forEach>
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-3">专利摘要：</label>
							<div class="formControls col-xs-8"  >
								${patentSynergies[0].abstractInfo}
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-3">是否允许跨校：</label>
							<div class="formControls col-xs-8"  >
							<c:if test="${patentSynergies[0].patent.allowCorss==1}">
								允许跨校
							</c:if>
							<c:if test="${patentSynergies[0].patent.allowCorss==0}">
							<div class="formControls col-xs-8"  >
								不允许跨校
							</div>
							</c:if>
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-3">申请人：</label>
							<div class="formControls col-xs-8"  >
								${patentSynergies[0].patent.researcher.userName}
							</div>
						</div>
						<div class="row cl">
							<div class="col-xs-8 col-xs-offset-3 " style="margin-top:30px;">
								<input type="button" onclick="history.back()"  class="scbtn" value="返回"/>
							</div>
						</div>
					</form>
				</div>
				</div>
			</div>   
		</div> 
<script type="text/javascript"> 
  function changeSynergy(synergyId){
	  $.ajax({
			type:"POST",
			dataType:"text",
			data:{"synergyId":synergyId},
			url:"${pageContext.request.contextPath}/scienceExpert/getPatentSynergyById.do",
			success:function(data){
				$("#abstractInfo").html(data);
			}
		
	 });
  }
</script>
</body>
</html>